{include file='../../../PublicView/header.html'}
<link href="/assets/main.css" rel="stylesheet">
<link href="/assets/bui-min.css" rel="stylesheet">
<link href="/assets/dpl-min.css" rel="stylesheet">
<link href="https://g.alicdn.com/sj/top-jssdk/0.0.3/ui/authbtn/1.0/assets/authbtn.css" rel="stylesheet">
<script src="/assets/sdk/jquery-1.11.0.min.js"></script>
<script src="http://g.tbcdn.cn/??kissy/k/1.3.2/kissy-min.js"></script>
<script src="/assets/js/drag.js"></script>
<div class="taeapp admin-table" cellpadding="0" cellspacing="0" border="0">
        <div class="taeapp admin-table-main" style="width:990px">
            <!--内容部分-->
				<ul class="breadcrumb">
					<li><a href="/">互动到店</a> <span class="divider">/</span></li>
					<li>活动管理 <span class="divider">/</span></li>
					<li class="active">{$title}</li>
					<li class="pull-right"><a href="http://shop{$sid}.taobao.com/" target="_blank">进入店铺</a></li>
					<li class="pull-right"><a href="http://siteadmin.taobao.com/design.htm" target="_blank">进入装修</a> <span class="divider">/</span></li>
				</ul>
			<!--内容部分-->
			{include file='../../../PublicView/showmessage.html'}
			<div class="row toolbar">
				<li><button class="button button-danger js-back"><i class="icon-white icon-arrow-left"></i>返回</button></li>
				<li><button class="button button-success js-wgsubmit"><i class="icon-white icon-check"></i>保存</button></li>
				<li>没有抽奖机会时转不转？
				{if $cfg.frontcfg.none_anim==1}
				<button class="button button-mini button-danger js-animon"><i class="icon-white icon-repeat"></i>转</button></li>
				<li><button class="button button-mini js-animoff"><i class="icon-ban-circle"></i>不转</button></li>
				{else}
				<button class="button button-mini js-animon"><i class="icon-repeat"></i>转</button></li>
				<li><button class="button button-mini button-danger js-animoff"><i class="icon-white icon-ban-circle"></i>不转</button></li>
				{/if}
				下载官方背景图：<a href="{$bg_default}" target="_blank" class="button button-mini button-info"><i class="icon-white icon-download-alt"></i></a>
				<li class="offset2">自定义总开关：
				{if $cfg.frontcfg.front_pic == 1 }
				<button class="button js-open button-danger" ><i class="icon-white icon-eye-open "></i>已启用</button>
				{else}
				<button class="button js-open" ><i class="icon-eye-close "></i>开启</button>
				{/if}
				</li>
				<li class="pull-right"><button class="button button-info js-imgup " data-imgkey="4" ><i class="icon-white  icon-picture "></i>上传背景图</button></li>
			</div>
			{if $issetted==1}
			系统检测到您设置过界面，如需使用当前界面的默认设置请：<button type="button" class="button button-small js-readdefault">读取默认参数</button> 或：<button type="button" class="button button-small js-readloaded">读取上次保存的参数</button>
			{/if}
			<!-- {if $cfg.frontcfg.curtool=="dices"}
			您选择的是大富翁外观，可以<button type="button" class="button button-small js-read" data-do="loaded">读取默认位置</button> 或 <button type="button" class="button button-small js-read" data-do="default">读取上次保存的位置</button>
			{/if} -->
			<!-- 模拟外观 -->
			<input type="hidden" class="bg_default" value="{$bg_default}" />
			<input type="hidden" class="bg_own" value="{$cfg.frontcfg.front_pic_url}" />
			<div id="area" style="width:990px;height:360px;position:relative;background:url({if $cfg.frontcfg.front_pic==1}{$cfg.frontcfg.front_pic_url}{else}{$bg_default}{/if});">
			<!-- 签到按钮 -->
			<input style="position:absolute;" data-tp="qiandao" id="qiandao" class="btn btn-mini btn-warning js-qiandao edit" type="button" value="签到">
			<input style="position:absolute;left:50px" data-tp="duihuan" class="btn btn-mini btn-warning js-duihuan" type="button" value="积分兑换">
			<input style="position:absolute;left:120px" data-tp="qdduihuan" class="btn btn-mini btn-warning js-qdduihuan" type="button" value="签到兑换">
			<input style="position:absolute;left:190px" data-tp="jfjiacheng" class="btn btn-mini btn-warning js-jfjiacheng" type="button" value="签到加成">
			<input style="position:absolute;left:260px" data-tp="ddhjiafen" class="btn btn-mini btn-warning js-ddhjiafen" type="button" value="订单号加分">

			{if $cfg.frontcfg.front_pic==1}
				{assign var="fcfgs" value=$cfg.frontcfg.front_cfg}
			{else}
				{assign var="fcfgs" value=$frount_default}
			{/if}
			{foreach from=$fcfgs key=key item=item}
			<div id="{$key}" class="edit dd{$key} {if $key=="gg"}gonggao{elseif $key=="mywin"}mygift{elseif $key=="gift"}gifts{else}{$key}{/if}" style="position: absolute;background-color:#FFF;{foreach from=$item item=i key=k}{$k}:{$i};{/foreach}">
				{if $key=="gg"}<a class="gg" data-tp="gg">活动公告</a>  <a class="gz" data-tp="gz">抽奖规则</a>  <a class="dj" data-tp="dj">兑奖方式</a>{/if}
				{if $key=="win"}<p style="padding-left:4px;">共抽奖<span style="color:#FF0107;padding:0 3px;">0</span>次，累积中奖次数<span style="color:#FF0107;padding:0 3px;">0</span>次</p>{/if}
				{if $key=="contdown"} <span class="ks-d value " style="margin-left:14px">24</span> <span class="ks-h value ">23</span> <span class="ks-m value">59</span> <span class="ks-s value">51</span> {/if}
				{if $key=="gift"}奖品列表{/if}
				{if $key=="mywin"}我的抽奖{/if}
				{if $key=="cart" || $key=="action"}
				<div id="coor" data-id="{$key}"></div>
				{/if}
				{if $key!="action"}
				<div class="coorx" data-id="{$key}"></div>
				{/if}
			</div>
			{/foreach}
			{if $cfg.frontcfg.curtool=="dices"}
			{foreach from=$cfg.giftset key=key item=item}
			<div class="dicesdiv dd{$key}" style="left:{$item.left}px;top:{$item.top}px;width:{$item.width}px;height:{$item.height}px;{if $item.forbidden}display:none{/if}" id="{$key}">
			{$key+1}
				<div id="coor" data-id="{$key}"></div>
				<div class="coorx" data-id="{$key}"></div>
			</div>
			{/foreach}
			{/if}
			</div>
			<div class="row">
			  <div class="panel">
			  <div class="panel-header">
				<h3>外观设置</h3>
			  </div>
			  <div class="panel-body clearfix">
				<form method="post" class="form1" action="/?a=bandcfg_save&m=shopadmin&c=frontcfg">
					<input class="uploadbg" type="hidden" name="uploadbg" value="" />
					<div class="form-horizontal">
						<div class="row">
						<div class="control-group span20">
							<label class="control-label">自定义参数</label>
							<div class="controls control-row-auto span23  span-width">
									<div class="well">
										<div class="control-group">
												<label class="control-label">倒计时设置：</label>
												<div class="controls">
													左边距<input data-default="{$frount_default.contdown.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.contdown.left|replace:"px":""}" class="leftcontdown span2 span-width control-text contdown-left form" value="{$cfg.frontcfg.front_cfg.contdown.left|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.contdown.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.contdown.top|replace:"px":""}" class="topcontdown span2 span-width control-text contdown-top form" value="{$cfg.frontcfg.front_cfg.contdown.top|replace:"px":""}" type="text">像素(px)
													隐藏<input data-id="contdown" data-default="{$frount_default.contdown.visibility}" data-saved="{$cfg.frontcfg.front_cfg.contdown.visibility|default:"visible"}" class="forb fbcontdown contdown-hide" {if $cfg.frontcfg.front_cfg.contdown.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img01.taobaocdn.com/imgextra/i1/27390555/TB2wsnZbpXXXXabXXXXXXXXXXXX-27390555.jpg' target='_blank'><img src='http://img01.taobaocdn.com/imgextra/i1/27390555/TB2wsnZbpXXXXabXXXXXXXXXXXX-27390555.jpg_760x760.jpg'/></a>">?</span>
													
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">奖品列表：</label>
												<div class="controls">
													左边距<input data-default="{$frount_default.gift.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.gift.left|default:"670"|replace:"px":""}" class="leftgift span2 span-width control-text form gift-right" value="{$cfg.frontcfg.front_cfg.gift.left|default:"670"|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.gift.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.gift.top|replace:"px":""}" class="topgift span2 span-width control-text form gift-top" value="{$cfg.frontcfg.front_cfg.gift.top|replace:"px":""}" type="text">像素(px)
													隐藏<input data-id="gift" data-default="{$frount_default.gift.visibility}" data-saved="{$cfg.frontcfg.front_cfg.gift.visibility|default:"visible"}" class="forb fbgift form gift-hide" {if $cfg.frontcfg.front_cfg.gift.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img04.taobaocdn.com/imgextra/i4/27390555/TB2qZDWbpXXXXbdXXXXXXXXXXXX-27390555.jpg' target='_blank'><img src='http://img04.taobaocdn.com/imgextra/i4/27390555/TB2qZDWbpXXXXbdXXXXXXXXXXXX-27390555.jpg_760x760.jpg'/></a>">?</span>
													
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">“我的抽奖”按钮：</label>
												<div class="controls">
													左边距<input data-default="{$frount_default.mywin.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.mywin.left|default:"870"|replace:"px":""}" class="leftmywin span2 span-width control-text form mywin-right" value="{$cfg.frontcfg.front_cfg.mywin.left|default:"870"|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.mywin.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.mywin.top|replace:"px":""}" class="topmywin span2 span-width control-text form mywin-top" value="{$cfg.frontcfg.front_cfg.mywin.top|replace:"px":""}" type="text">像素(px)
													隐藏<input data-id="mywin" data-default="{$frount_default.mywin.visibility}" data-saved="{$cfg.frontcfg.front_cfg.win.visibility|default:"visible"}" class="forb fbmywin form mywin-hide" {if $cfg.frontcfg.front_cfg.win.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img02.taobaocdn.com/imgextra/i2/27390555/TB25vYMbpXXXXciXpXXXXXXXXXX-27390555.jpg' target='_blank'><img src='http://img02.taobaocdn.com/imgextra/i2/27390555/TB25vYMbpXXXXciXpXXXXXXXXXX-27390555.jpg_760x760.jpg'/></a>">?</span>
													
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">三个公告按钮：</label>
												<div class="controls">
													左边距<input data-default="{$frount_default.gg.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.gg.left|default:"660"|replace:"px":""}" class="leftgg span2 span-width control-text form gg-right" value="{$cfg.frontcfg.front_cfg.gg.left|default:"660"|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.gg.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.gg.top|replace:"px":""}" class="topgg span2 span-width control-text form gg-top" value="{$cfg.frontcfg.front_cfg.gg.top|replace:"px":""}" type="text">像素(px)
													隐藏<input data-id="gg" data-default="{$frount_default.gg.visibility}" data-saved="{$cfg.frontcfg.front_cfg.gg.visibility|default:"visible"}" class="forb fbgg form gg-hide" {if $cfg.frontcfg.front_cfg.gg.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img03.taobaocdn.com/imgextra/i3/27390555/TB2fy6ObpXXXXX4XpXXXXXXXXXX-27390555.jpg' target='_blank'><img src='http://img03.taobaocdn.com/imgextra/i3/27390555/TB2fy6ObpXXXXX4XpXXXXXXXXXX-27390555.jpg_760x760.jpg'/></a>">?</span>
													
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">中奖信息设置：</label>
												<div class="controls">
													左边距<input data-default="{$frount_default.win.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.win.left|default:"720"|replace:"px":""}" class="leftwin span2 span-width control-text form win-right" value="{$cfg.frontcfg.front_cfg.win.left|default:"720"|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.win.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.win.top|default:"190"|replace:"px":""}" class="topwin span2 span-width control-text form win-bottom" value="{$cfg.frontcfg.front_cfg.win.top|default:"190"|replace:"px":""}" type="text">像素(px)
													隐藏<input data-id="win" data-default="{$frount_default.win.visibility}" data-saved="{$cfg.frontcfg.front_cfg.win.visibility|default:"visible"}" class="forb fbwin form win-hide" {if $cfg.frontcfg.front_cfg.win.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img02.taobaocdn.com/imgextra/i2/27390555/TB23VrPbpXXXXXEXpXXXXXXXXXX-27390555.jpg' target='_blank'><img src='http://img02.taobaocdn.com/imgextra/i2/27390555/TB23VrPbpXXXXXEXpXXXXXXXXXX-27390555.jpg_760x760.jpg'/></a>">?</span>
													
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">抽奖按钮：</label>
												<div class="controls control-row-auto ">
													<div class="control-row1">左边距<input data-default="{$frount_default.action.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.action.left|replace:"px":""}" class="leftaction span2 span-width control-text form action-left" value="{$cfg.frontcfg.front_cfg.action.left|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.action.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.action.top|replace:"px":""}" class="topaction span2 span-width control-text form action-top" value="{$cfg.frontcfg.front_cfg.action.top|replace:"px":""}" type="text">像素(px)
													宽度<input data-default="{$frount_default.action.width|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.action.width|replace:"px":""}" class="widthaction span2 span-width control-text form action-width" value="{$cfg.frontcfg.front_cfg.action.width|replace:"px":""}" type="text">像素(px)
													高度<input data-default="{$frount_default.action.height|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.action.height|replace:"px":""}" class="heightaction span2 span-width control-text form action-height" value="{$cfg.frontcfg.front_cfg.action.height|replace:"px":""}" type="text">像素(px)
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img02.taobaocdn.com/imgextra/i2/27390555/TB2g.jTbpXXXXbOXXXXXXXXXXXX-27390555.jpg' target='_blank'><img src='http://img02.taobaocdn.com/imgextra/i2/27390555/TB2g.jTbpXXXXbOXXXXXXXXXXXX-27390555.jpg_760x760.jpg'/></a>">?</span>
													</div>
													{if $cfg.frontcfg.curtool=="wheels"}
														大转盘外观暂不支持变更指针外观。
													{else}
														<div class="control-row1">图片<input data-default="{$frount_default.action.background}" data-saved="{$cfg.frontcfg.front_cfg.action.background}" class="span8 imgurl1 span-width control-text form action-pic" value="{$cfg.frontcfg.front_cfg.action.background}" type="text"><button type="button" class="button button-mini button-danger js-imgup" data-imgkey="1">上传</button>
														</div>
													{/if}
													<!-- 
													<span class="upImage1">
													<img class="js-imgup" src="http://img02.taobaocdn.com/imgextra/i2/27390555/TB2WhpOaXXXXXcTXXXXXXXXXXXX-27390555.png">
													</span> -->
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">购物车按钮：</label>
												<div class="controls control-row-auto">
													<div class="control-row1">左边距<input data-default="{$frount_default.cart.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" class="leftcart span2 span-width control-text form cart-left" value="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.cart.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" class="topcart span2 span-width control-text form cart-top" value="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" type="text">像素(px)
													宽度<input data-default="{$frount_default.cart.width|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" class="widthcart span2 span-width control-text form cart-width" value="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" type="text">像素(px)
													高度<input data-default="{$frount_default.cart.height|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" class="heightcart span2 span-width control-text form cart-height" value="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" type="text">像素(px)
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif' target='_blank'><img src='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif_760x760.jpg'/></a>">?</span>
													</div>
													<div class="control-row1">图片<input class="span8 imgurl3 span-width control-text form cart-pic" value="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-default="{$frount_default.cart.background|replace:"url(":""|replace:") no-repeat":""}" type="text"><button type="button" class="button button-mini button-danger js-imgup" data-imgkey="3">上传</button>
													
													隐藏<input data-id="cart" data-default="{$frount_default.cart.visibility}" data-saved="{$cfg.frontcfg.front_cfg.cart.visibility|default:"visible"}" class="forb fbcart form cart-hide" {if $cfg.frontcfg.front_cfg.cart.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													</div>
													<!-- <span class="upImage3">
													<img class="js-imgup" src="http://img04.taobaocdn.com/imgextra/i4/27390555/TB26FHAbpXXXXamXpXXXXXXXXXX-27390555.png">
													</span> -->
													
												</div>
										</div>
										
										<div class="control-group">
												<label class="control-label">签到按钮：</label>
												<div class="controls control-row-auto">
													<div class="control-row1">左边距<input data-default="{$frount_default.cart.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" class="leftcart span2 span-width control-text form cart-left" value="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.cart.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" class="topcart span2 span-width control-text form cart-top" value="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" type="text">像素(px)
													宽度<input data-default="{$frount_default.cart.width|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" class="widthcart span2 span-width control-text form cart-width" value="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" type="text">像素(px)
													高度<input data-default="{$frount_default.cart.height|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" class="heightcart span2 span-width control-text form cart-height" value="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" type="text">像素(px)
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif' target='_blank'><img src='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif_760x760.jpg'/></a>">?</span>
													</div>
													<div class="control-row1">图片<input class="span8 imgurl3 span-width control-text form cart-pic" value="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-default="{$frount_default.cart.background|replace:"url(":""|replace:") no-repeat":""}" type="text"><button type="button" class="button button-mini button-danger js-imgup" data-imgkey="3">上传</button>
													
													隐藏<input data-id="cart" data-default="{$frount_default.cart.visibility}" data-saved="{$cfg.frontcfg.front_cfg.cart.visibility|default:"visible"}" class="forb fbcart form cart-hide" {if $cfg.frontcfg.front_cfg.cart.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													</div>
													<!-- <span class="upImage3">
													<img class="js-imgup" src="http://img04.taobaocdn.com/imgextra/i4/27390555/TB26FHAbpXXXXamXpXXXXXXXXXX-27390555.png">
													</span> -->
													
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">积分兑换按钮：</label>
												<div class="controls control-row-auto">
													<div class="control-row1">左边距<input data-default="{$frount_default.cart.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" class="leftcart span2 span-width control-text form cart-left" value="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.cart.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" class="topcart span2 span-width control-text form cart-top" value="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" type="text">像素(px)
													宽度<input data-default="{$frount_default.cart.width|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" class="widthcart span2 span-width control-text form cart-width" value="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" type="text">像素(px)
													高度<input data-default="{$frount_default.cart.height|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" class="heightcart span2 span-width control-text form cart-height" value="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" type="text">像素(px)
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif' target='_blank'><img src='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif_760x760.jpg'/></a>">?</span>
													</div>
													<div class="control-row1">图片<input class="span8 imgurl3 span-width control-text form cart-pic" value="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-default="{$frount_default.cart.background|replace:"url(":""|replace:") no-repeat":""}" type="text"><button type="button" class="button button-mini button-danger js-imgup" data-imgkey="3">上传</button>
													
													隐藏<input data-id="cart" data-default="{$frount_default.cart.visibility}" data-saved="{$cfg.frontcfg.front_cfg.cart.visibility|default:"visible"}" class="forb fbcart form cart-hide" {if $cfg.frontcfg.front_cfg.cart.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													</div>
													<!-- <span class="upImage3">
													<img class="js-imgup" src="http://img04.taobaocdn.com/imgextra/i4/27390555/TB26FHAbpXXXXamXpXXXXXXXXXX-27390555.png">
													</span> -->
													
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">签到兑换按钮：</label>
												<div class="controls control-row-auto">
													<div class="control-row1">左边距<input data-default="{$frount_default.cart.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" class="leftcart span2 span-width control-text form cart-left" value="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.cart.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" class="topcart span2 span-width control-text form cart-top" value="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" type="text">像素(px)
													宽度<input data-default="{$frount_default.cart.width|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" class="widthcart span2 span-width control-text form cart-width" value="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" type="text">像素(px)
													高度<input data-default="{$frount_default.cart.height|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" class="heightcart span2 span-width control-text form cart-height" value="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" type="text">像素(px)
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif' target='_blank'><img src='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif_760x760.jpg'/></a>">?</span>
													</div>
													<div class="control-row1">图片<input class="span8 imgurl3 span-width control-text form cart-pic" value="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-default="{$frount_default.cart.background|replace:"url(":""|replace:") no-repeat":""}" type="text"><button type="button" class="button button-mini button-danger js-imgup" data-imgkey="3">上传</button>
													
													隐藏<input data-id="cart" data-default="{$frount_default.cart.visibility}" data-saved="{$cfg.frontcfg.front_cfg.cart.visibility|default:"visible"}" class="forb fbcart form cart-hide" {if $cfg.frontcfg.front_cfg.cart.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													</div>
													<!-- <span class="upImage3">
													<img class="js-imgup" src="http://img04.taobaocdn.com/imgextra/i4/27390555/TB26FHAbpXXXXamXpXXXXXXXXXX-27390555.png">
													</span> -->
													
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">签到加成按钮：</label>
												<div class="controls control-row-auto">
													<div class="control-row1">左边距<input data-default="{$frount_default.cart.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" class="leftcart span2 span-width control-text form cart-left" value="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.cart.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" class="topcart span2 span-width control-text form cart-top" value="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" type="text">像素(px)
													宽度<input data-default="{$frount_default.cart.width|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" class="widthcart span2 span-width control-text form cart-width" value="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" type="text">像素(px)
													高度<input data-default="{$frount_default.cart.height|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" class="heightcart span2 span-width control-text form cart-height" value="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" type="text">像素(px)
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif' target='_blank'><img src='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif_760x760.jpg'/></a>">?</span>
													</div>
													<div class="control-row1">图片<input class="span8 imgurl3 span-width control-text form cart-pic" value="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-default="{$frount_default.cart.background|replace:"url(":""|replace:") no-repeat":""}" type="text"><button type="button" class="button button-mini button-danger js-imgup" data-imgkey="3">上传</button>
													
													隐藏<input data-id="cart" data-default="{$frount_default.cart.visibility}" data-saved="{$cfg.frontcfg.front_cfg.cart.visibility|default:"visible"}" class="forb fbcart form cart-hide" {if $cfg.frontcfg.front_cfg.cart.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													</div>
													<!-- <span class="upImage3">
													<img class="js-imgup" src="http://img04.taobaocdn.com/imgextra/i4/27390555/TB26FHAbpXXXXamXpXXXXXXXXXX-27390555.png">
													</span> -->
													
												</div>
										</div>
										<div class="control-group">
												<label class="control-label">订单号积分按钮：</label>
												<div class="controls control-row-auto">
													<div class="control-row1">左边距<input data-default="{$frount_default.cart.left|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" class="leftcart span2 span-width control-text form cart-left" value="{$cfg.frontcfg.front_cfg.cart.left|replace:"px":""}" type="text">像素(px)
													上边距<input data-default="{$frount_default.cart.top|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" class="topcart span2 span-width control-text form cart-top" value="{$cfg.frontcfg.front_cfg.cart.top|replace:"px":""}" type="text">像素(px)
													宽度<input data-default="{$frount_default.cart.width|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" class="widthcart span2 span-width control-text form cart-width" value="{$cfg.frontcfg.front_cfg.cart.width|replace:"px":""}" type="text">像素(px)
													高度<input data-default="{$frount_default.cart.height|replace:"px":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" class="heightcart span2 span-width control-text form cart-height" value="{$cfg.frontcfg.front_cfg.cart.height|replace:"px":""}" type="text">像素(px)
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="<a href='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif' target='_blank'><img src='http://img01.taobaocdn.com/imgextra/i1/27390555/TB25s_ObpXXXXX8XpXXXXXXXXXX-27390555.gif_760x760.jpg'/></a>">?</span>
													</div>
													<div class="control-row1">图片<input class="span8 imgurl3 span-width control-text form cart-pic" value="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-saved="{$cfg.frontcfg.front_cfg.cart.background|replace:"url(":""|replace:") no-repeat":""}" data-default="{$frount_default.cart.background|replace:"url(":""|replace:") no-repeat":""}" type="text"><button type="button" class="button button-mini button-danger js-imgup" data-imgkey="3">上传</button>
													
													隐藏<input data-id="cart" data-default="{$frount_default.cart.visibility}" data-saved="{$cfg.frontcfg.front_cfg.cart.visibility|default:"visible"}" class="forb fbcart form cart-hide" {if $cfg.frontcfg.front_cfg.cart.visibility=="hidden"}checked="checked"{/if} type="checkbox">
													</div>
													<!-- <span class="upImage3">
													<img class="js-imgup" src="http://img04.taobaocdn.com/imgextra/i4/27390555/TB26FHAbpXXXXamXpXXXXXXXXXX-27390555.png">
													</span> -->
													
												</div>
										</div>
										
										<div class="control-group control-row3">
												<label class="control-label">代码：</label>
												<div class="controls">
													<textarea name="code" id="" class="input-large js-code"></textarea>
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="最终保存的外观配置代码。支持通用的css规则，参考这里生成的代码可以设置其他css属性。数据含义：contdown：倒计时；gift：奖品列表；mywin：我的奖品；gg：三个公告按钮（活动公告 抽奖规则 兑奖方式）；win：中奖名单；action：抽奖按钮；cart：购物车按钮">?</span>
												</div>
										</div>
										<div class="row control-row5 centered">
											<button type="button" class="button button-small js-readdefault">读取默认参数</button> 
											<button type="button" class="button button-small js-readloaded">读取上次保存的参数</button> 
										</div>
									</div>
							</div>
							</div>
						{if $cfg.frontcfg.curtool=="dices" || $cfg.frontcfg.curtool=="wheels"}
						<div class="control-group span20 ">
							<label class="control-label">绑定奖品总开关：</label>
							<div class="controls control-row-auto span23  span-width">
									<div class="well">
										<div class="row control-row5 centered">
											<label class="checkbox"><input type="radio" class="kaiguan" name="kaiguan" {if $cfg.onoff==1}checked{/if} value="1" />打开</label><label class="checkbox"><input type="radio" name="kaiguan" {if $cfg.onoff==0}checked{/if} value="0" />关闭</label>
											<span class="x-icon x-icon-mini x-icon-info helper" data-tip="绑定奖品的总开关。关闭以后绑定设置不生效。">?</span>
										</div>
									</div>
							</div>
						</div>
						<div class="control-group span20">
						<label class="control-label">绑定设置<br /><span class="js-sys {if $bg_open == 0 }hide{/if}">（不生效）</span></label>
							
							<div class="controls control-row-auto span23  span-width">
											<table cellspacing="0" class="table table-bordered">
												<tbody>
												{if $cfg.frontcfg.curtool=="dices"}
												{foreach from=$cfg.giftset key=plc item=set}
												  <tr class="add">
													<td>
													位置：[{$plc+1}号位置] 宽：<input type="text" data-id="{$plc}" data-ty="width" class="span1 span-width control-text width{$plc}" name="width[]" value="{$set.width}" data-default="{$set.width}" data-saved="{$gift_default.giftset[$plc].width}"> 高：<input data-id="{$plc}" data-ty="height" type="text" name="height[]" class="span1 span-width control-text height{$plc}" value="{$set.height}" data-default="{$set.height}" data-saved="{$gift_default.giftset[$plc].height}"> 左：<input data-id="{$plc}" data-ty="left" type="text" name="left[]" class="span1 span-width control-text left{$plc}" value="{$set.left}" data-default="{$set.left}" data-saved="{$gift_default.giftset[$plc].left}"> 上：<input data-id="{$plc}" data-ty="top" type="text" name="top[]" class="span1 span-width control-text top{$plc}" value="{$set.top}"  data-default="{$set.top}" data-saved="{$gift_default.giftset[$plc].top}">
													奖品：
													<select class="input-small" name="gift[]">
														{foreach from=$gifts key=key item=item}
														<option value="{$key}" {if $set.gift==$key}selected{/if} >{$item.name}{if $item.level}[{$item.level}]{/if}</option>
														{/foreach}
													</select>
													<label class="checkbox">
													<input class="forb fb{$plc}" type="checkbox" value="1" data-id="{$plc}" name="forbidden[]" {if $set.forbidden}checked{/if}  data-default="{$set.forbidden}" />禁用
													</label>
													<label class="checkbox">
													<input class="showpic" type="checkbox" value="1" name="showpic[]" {if $set.pic_url}checked{/if} />奖品主图当作缩略图
													</label>
													<span class="x-icon x-icon-mini x-icon-info helper" data-tip="选中此选项，则奖品主图被显示到前台，并且主图规格需要按照这里设置的大小上传。不选此选项，则使用背景上的图片。">?</span>
													</td>
												  </tr>
												  {/foreach}
												  {/if}
												{if $cfg.frontcfg.curtool=="wheels"}
												{foreach from=$cfg.giftset key=plc item=set}
												  <tr class="add">
													<td>
													角度：[{$plc+1}号角度] 开始角度：<input type="text" data-id="{$plc}" data-ty="width" class="span1 span-width control-text width{$plc}" name="width[]" value="{$set.width}" data-default="{$set.width}" data-saved="{$gift_default.giftset[$plc].width}"> 
													结束角度：<input data-id="{$plc}" data-ty="height" type="text" name="height[]" class="span1 span-width control-text height{$plc}" value="{$set.height}" data-default="{$set.height}" data-saved="{$gift_default.giftset[$plc].height}">
													奖品：
													<select class="input-small" name="gift[]">
														{foreach from=$gifts key=key item=item}
														<option value="{$key}" {if $set.gift==$key}selected{/if} >{$item.name}{if $item.level}[{$item.level}]{/if}</option>
														{/foreach}
													</select>
													<label class="checkbox">
													<input class="forb fb{$plc}" type="checkbox" value="1" data-id="{$plc}" name="forbidden[]" {if $set.forbidden}checked{/if}  data-default="{$set.forbidden}" />禁用
													</label>
													</td>
												  </tr>
												  {/foreach}
												  {/if}
												</tbody>
											</table> 
							</div>
							</div>
							<div class="control-group span20 form-actions centered ">
								<button type="button" class="button button-small js-read" data-do="loaded">读取默认位置</button>
								<button type="button" class="button button-small js-read"  data-do="default">读取上次保存的位置</button>
							</div>
						{/if}
							</div>
							</div>
						</div>
					</div>
				</form>
			  </div>
			  </div>
			</div>
			<input type="file" name="userfile" hidefocus="true" class="file-input hide">
			<ul id="J_UploaderQueue" style="position: fixed;border: 1px #D8D8D8 solid;bottom: 0;right: 0;background: #F0F9FF;padding: 2px;" class="ks-uploader-queue defaultTheme-queue"></ul>		
			<input type="hidden" class="type" value="{$type|default:0}" />
        <!--内容部分-->
        </div>
</div>